package com.group.hugedatabehind.mapper;

import com.group.hugedatabehind.pojo.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface NameMapper {

    @Select("SELECT sender_name, sender_account, sender_sex, receiver_name, message FROM db_msg.tb_msg_etl WHERE sender_name = #{senderName} LIMIT 1")
    Message findBySenderName(String senderName);
}
